package com.hfi.state.demo02;

/**
 * @author ChangLiang
 * @date 2020/4/14
 */
public class MediumState implements State {
    @Override
    public void changeFireClockWise(FireSwitch fireSwitch) {
        fireSwitch.setState(new LargeState());
        System.out.println("large fire");
    }

    @Override
    public void changeFireCounterClockWise(FireSwitch fireSwitch) {
        fireSwitch.setState(new SmallState());
        System.out.println("small fire");
    }
}
